package asia.yuanding.wechat.system.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: SystemConstant
 * @Author: YuanDing
 * @Date: 2025/7/26 10:03
 * @Description:
 */

@Configuration
//@ConfigurationProperties("system")
@Data
public class SystemConstant {

    @Value("${system.jwt.secret}")
    public String secret;


    public static class UserApplyStatus {
        // 0-未处理 1-已同意 2-已拒绝 3-已拉黑
        public static final Integer NOT_APPLY = 0;
        public static final Integer APPLY = 1;
        public static final Integer FRIEND = 2;
        public static final Integer BLOCKED = 3;
    }

    // 用户联系人类型
    public static class UserContactType {
        // 1-用户 2-群组
        public static final Integer USER = 1;
        public static final Integer GROUP = 2;
    }

    // 用户联系人状态
    public static class UserContactStatus {
        // 状态0-非好友 1-好友 2-已删除 3-被好友删除 4-拉黑 5-被拉黑 6-正在申请
        public static final Integer NOT_FRIEND = 0;
        public static final Integer FRIEND = 1;
        public static final Integer DEL = 2;
        public static final Integer DELETED = 3;
        public static final Integer BLOCK = 4;
        public static final Integer BLOCKED = 5;
        public static final Integer APPLYING = 6;
    }

}
